/**
 * Created by kule on 2017/3/14.
 */
import getUrlSearchParam from './getUrlSearchParams';
export const urlEncode=(map={},search='')=>{
    const newSearch=getUrlSearchParam(search);
    for(let k in map){
        newSearch.set(k,map[k]);
    }
    return newSearch+'';
};
export default urlEncode;